// component/VipItem/VipItem.js
Component({
  /**
   * 组件的属性列表
   */
  properties: {
    vip_item: {type:Object}, 
    cur_index: {type: Number}, 
    selected_index: {type: Number},
    animate_event: {type: Boolean}
  },

  observers: {
    'animate_event': function(a){
      console.debug("observers animate_event change")
      this.animate('.vip_wrapper_selected', [ {
        opacity: 0
      } ,{
        opacity: 0.8
      }], 1000, ()=>{console.debug("vip_wrapper_selected end")})
      
      this.animate('.yes', [{
        opacity: 0
      },  {
        opacity: 0.8
      }], 1000, ()=>{console.debug("yes end")})
    }//animate_event end
  },//observers end
  /**
   * 组件的初始数据
   */
  data: {
    
  },

  /**
   * 组件的方法列表
   */
  methods: {

  }
})
